package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"newdoctor-management/api/internal/config"
	"newdoctor-management/doctorroc/doctorrocclient"
)

type ServiceContext struct {
	Config    config.Config
	DoctorRoc doctorrocclient.Doctorroc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:    c,
		DoctorRoc: doctorrocclient.NewDoctorroc(zrpc.MustNewClient(c.DoctorRoc)),
	}
}
